﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BingVis.SilverlightClient.Common;
using System.ComponentModel;

namespace BingVis.SilverlightClient.GoogleTransit
{
    public class SelectiveFareTapLoader : FareTapLoader
    {
        private string _stopName = string.Empty;

        public SelectiveFareTapLoader(IGTFSFile file, string stopName)
            : base(file)
        {
            _stopName = stopName;
        }

        public override void ProcessItem(ICSVLine line)
        {   
            if (FareStopLookup.CompareStopNames(line[1], StopNameLookup.GetStopName(_stopName)))
                base.ProcessItem(line);
        }
    }
}
